<!DOCTYPE html>
<html lang="en">
<head>
    <script>
        window.webctx = "https://print.yyuap.com/printdemo";
    </script>
    <title>打印管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/printbo.css" rel="stylesheet">
    <script src="bower_components/jquery/dist/jquery.min.js"></script>
</head>
<body ng-app="PrintService" ng-controller="printManageCtrl">
<div id="mainContainer" class="mainContainer">
    <div class="header container">
        <div class="logo">
            <div class="header-left">
                <span>智能工厂</span>
                <span class="head-spliter">|</span>
                <span>打印管理</span>
            </div>
            <div class="header-right">
                <span class="btn-item top-right-btn" style="font-size: 14px" ng-click="syscBOTempInfo()">同步模板</span>
                <span class="btn-item top-right-btn" style="font-size: 14px" ng-click="goSetting()">服务设置</span>
            </div>
        </div>
    </div>
    <div class="app container">
        <div ng-if="data.isMounted">
            <div ng-repeat="item in data.classList" class="section">
                <div class="section-name">{{item.bo_name}}</div>
                <ul class="item-list">
                    <li ng-repeat="tpl in item.template"
                        ng-class="['card-item', 'item-group', tpl.issystem?'issystem':'']">
                        <span ng-if="tpl.issystem" class="item-info">预置</span>
                        <div class="card-color">
                            <div class="item-name">{{tpl.templatename}}</div>
                            <div class="btn-group flex-box">
                                <span ng-if="!tpl.issystem" ng-click="templateDesign(tpl)"
                                      class="btn-item flex1">设计</span>
                                <span ng-click="templateCopy(item,tpl)" class="btn-item flex1">复制</span>
                                <span ng-click="templatePreview(item,tpl)" class="btn-item flex1">预览</span>
                                <span ng-if="!tpl.issystem" ng-click="templateDelete(tpl)"
                                      class="btn-item flex1">删除</span>
                            </div>
                        </div>
                    </li>
                    <li class="card-item add-button" ng-click="showAddDialog(item)">+</li>
                </ul>
            </div>
        </div>
        <div ng-if="control.loading" class="circle-spinner">
            <div class="spinner-container container1">
                <div class="circle1"></div>
                <div class="circle2"></div>
                <div class="circle3"></div>
                <div class="circle4"></div>
            </div>
            <div class="spinner-container container2">
                <div class="circle1"></div>
                <div class="circle2"></div>
                <div class="circle3"></div>
                <div class="circle4"></div>
            </div>
            <div class="spinner-container container3">
                <div class="circle1"></div>
                <div class="circle2"></div>
                <div class="circle3"></div>
                <div class="circle4"></div>
            </div>
        </div>
    </div>
</div>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/bootbox/bootbox.js"></script>
<script src="scripts/controllers/printManage.js"></script>
</body>
</html>